public class Main {
    public static void main(String[] args) {

        HandsetBrand miPhone = new XiaoMi();
        miPhone.setSoft(new HandSetGame());
        miPhone.run();

        miPhone.setSoft(new WeChat());
        miPhone.run();
        //iphone手机实例
        HandsetBrand iphone = new HuaWei();
        iphone.setSoft(new WeChat());
        iphone.run();
    }
}